package com.enjoyor.soa.traffic.core.tsms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tsms.constant.CheckInfoSqlId;
import com.enjoyor.soa.traffic.core.tsms.domain.SchemeCheck;
import com.enjoyor.soa.traffic.core.tsms.mapper.ISchemeCheckMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;

@Service
@Transactional
public class SchemeCheckMapper extends BaseMapper<SchemeCheck> implements ISchemeCheckMapper {
    
	@Override
	public Page getSchemeCheckInfoPage(Page page) {
		// TODO Auto-generated method stub
		return this.selectPageInfo(getSqlName(CheckInfoSqlId.SQL_SELECT_ALL), page);
	}

	@Override
	public List<SchemeCheck> getSchemeCheckInfoList(Map map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(CheckInfoSqlId.SQL_SELECT_LIST), map);
	}

}